// 封装一个cookie
import Cookies from "js-cookie";

const Token = "token";
//设置cookie，存放token
export function setToken(token) {
  Cookies.set(Token, token);
}
//获取cookie
export function getToken() {
  return Cookies.get(Token);
}
//删除cookie
export function removeToken() {
  Cookies.remove(Token);
}
